package com.sks.utils;

import java.util.ResourceBundle;

/**
 * 读取配置文件
 * @author Administrator
 *
 */
public class ConfigInfo {

	private static ResourceBundle cache = null;
	
	static{
		try{
			cache = ResourceBundle.getBundle("merchantInfo");
		}catch(RuntimeException e)
		{
			e.printStackTrace();
		}
	}
	
	/**
	 * 获取指定的key的值
	 * @param key
	 * @return
	 */
	public static String getValue(String key){
		return cache.getString(key);
	}
}
